package com.database.management.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.database.management.dao.CommandDao;

public class CommandService {
	CommandDao commandDao = null;
	public CommandService(Integer key) {
		commandDao = new CommandDao(key);
	}

	public int update(String sql) throws SQLException {
		return commandDao.update(sql);
	}

	public List<Map<String, Object>> find(String sql) throws Exception {
		return commandDao.find(sql);
	}
	
	public  List getAllTableName()  throws Exception {
		return commandDao.getAllTableName();
	}

}
